import request from '@/utils/request.js'

export const petGetItemService = (category)=> {
    return request.get('/pet/getInfoByCategory?category='+category)
}

export const petGetItemByIdService = (id)=> {
    return request.get('/pet/getInfoById?id='+id)
}

export const petSelectCategoey = ()=>{
    return request.get('/variety/searchNotExit');
}

export const petAddService = (data)=> {
    return request.put('/pet/add',data)
}

export const petDeleteService = (id)=> {
    return request.delete('/pet/delete?id='+id)
}

export const petUpdateService = (data)=> {
    return request.put('/pet/update',data)
}